package com.wnhoo.smartfishtank.api.data;

/**
 * Created by kevinwen on 2014/11/27.
 * Copyright (c) 2014/11/27.KevinWen. All rights reserved.
 */
public class DataPlug {

    /**
     * {"id":"1005ACCF233762D1","title":"插座1","about":"饮水机插座","type":1005,"image":"null","online":1,"full_status":"1,700"}
     */
    private String id ;
    private String title;
    private String about;
    private int type;
    private String image;
    private String online;
    private String full_status;
    private int category;//种类：蓝牙设备还是wifi设备  1表示wifi设备 2表示蓝牙设备
    private int rssi;
    private String des;//设备名称
    private int ring;//铃音
    private int shake;//震动开关
    private int ringSwitch;//铃音开关
    private int anti_lost;//防丢开关
    private int distance;//防丢距离 10,15,20
    private int remind;//当前是否有提醒
//    public SlideView slideView;
    @Override
    public String toString() {
        return "DataPlug{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", about='" + about + '\'' +
                ", type=" + type +
                ", image='" + image + '\'' +
                ", online='" + online + '\'' +
                ", full_status='" + full_status + '\'' +
                ", category=" + category +
                ", rssi=" + rssi +
                ", des='" + des + '\'' +
                '}';
    }

//    @Override
//    public boolean equals(Object o) {
//        if (this == o) return true;
//        if (o == null || getClass() != o.getClass()) return false;
//
//        DataPlug dataPlug = (DataPlug) o;
//
//        if (type != dataPlug.type) return false;
//        if (!about.equals(dataPlug.about)) return false;
//        if (full_status!=null&&dataPlug.full_status!=null){
//            if (!full_status.equals(dataPlug.full_status)) return false;
//        }
//        if (!id.equals(dataPlug.id)) return false;
//        if (!image.equals(dataPlug.image)) return false;
//        if (!online.equals(dataPlug.online)) return false;
//        if (!title.equals(dataPlug.title)) return false;
//
//        return true;
//    }

    @Override
    public int hashCode() {
        int result = id.hashCode();
        result = 31 * result + title.hashCode();
        result = 31 * result + about.hashCode();
        result = 31 * result + type;
        result = 31 * result + image.hashCode();
        result = 31 * result + online.hashCode();
        result = 31 * result + full_status.hashCode();
        return result;
    }

    public int getRemind() {
        return remind;
    }

    public void setRemind(int remind) {
        this.remind = remind;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public int getAnti_lost() {
        return anti_lost;
    }

    public void setAnti_lost(int anti_lost) {
        this.anti_lost = anti_lost;
    }

    public int getRingSwitch() {
        return ringSwitch;
    }

    public void setRingSwitch(int ringSwitch) {
        this.ringSwitch = ringSwitch;
    }

    public int getShake() {
        return shake;
    }

    public void setShake(int shake) {
        this.shake = shake;
    }

    public int getRing() {
        return ring;
    }

    public void setRing(int ring) {
        this.ring = ring;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public int getRssi() {
        return rssi;
    }

    public void setRssi(int rssi) {
        this.rssi = rssi;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAbout() {
        return about;
    }

    public void setAbout(String about) {
        this.about = about;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getOnline() {
        return online;
    }

    public void setOnline(String online) {
        this.online = online;
    }

    public String getFull_status() {
        return full_status;
    }

    public void setFull_status(String full_status) {
        this.full_status = full_status;
    }


}
